package router

import (
	"github.com/gin-gonic/gin"
	"text-mng-sys/handler"
)

func Router() *gin.Engine {
	r := gin.Default()
	r.POST("/TextAdd", handler.TextAdd)
	r.GET("/TextList", handler.TextList)
	r.GET("/TextDetail", handler.TextDetail)
	r.POST("/TextLike", handler.TextLike)
	return r
}
